blktap2/vhd: add -liconv when linking if using libiconv
authorRoger Pau Monne <roger.pau@entel.upc.edu>
Tue, 20 Dec 2011 07:31:40 +0000 (08:31 +0100)
committerRoger Pau Monne <roger.pau@entel.upc.edu>
Tue, 20 Dec 2011 07:31:40 +0000 (08:31 +0100)
commita69dda2bcef661c81b88b52053eef4369cb11b01
treefbceca338ec166e85147767477904aa8ac202909
parent8ade3afcf088522ac4004c6b8d7d69e7a562cc85
blktap2/vhd: add -liconv when linking if using libiconv

If libiconv is detected on the system add -liconv when linking the
libvhd library.

If -liconv is not added when compiling libvhd with libiconv the
following error occours when linking vhd-util and vhd-update:

gcc     -o vhd-util vhd-util.o -Llib -lvhd
lib/libvhd.so: undefined reference to `libiconv_open'
lib/libvhd.so: undefined reference to `libiconv_close'
lib/libvhd.so: undefined reference to `libiconv'

Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/blktap2/vhd/lib/Makefile